package com.store.pojo;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
//地址实体类
@Data
public class Address {
    private Integer aid;
    private Integer userId;
    private String receiver;
    private String province;
    private String city;
    private String area;
    private String detail;
    private String phone;
    private String tel;
    private String addressType;
    private String postalCode;
    private Integer isDelete; // 0 被删除，1 存在
    private Integer isDefault;// 0 不是默认，1 默认地址
    private String createUser;
    private String modifyUser;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modifyTime;
}
